import json

import pandas
with open('d:\\vvv8efd8d11-caa7-4b77-8fd1-9412e0d86e56.log') as file_obj:
    content = file_obj.read()
    patientList = json.loads(content)e
a = pandas.DataFrame(patientList)
# b = a.set_index('ID')  # 重新设置索引
a.to_excel(r'D:计算机二级ocr 训练a.xlsx')
